﻿using System;
using ExFlash.Records;

namespace ExFlash.Actions
{
    public class ActionSetTarget : ActionRecord
    {
        private int mSwfVersion;

        public StringRecord TargetName
        {
            get;
            private set;
        }

        public ActionSetTarget(ushort len, int Version)
            : base((byte)ActionCodes.ActionSetTarget, len)
        {
            mSwfVersion = Version;
        }

        public override void SwfDeserialize(BinaryBitReader reader)
        {
            TargetName = new StringRecord(mSwfVersion);
            TargetName.SwfDeserialize(reader);
        }

        public override void SwfSerialize(byte[] arr, ref int offset)
        {
            throw new NotImplementedException();
        }
    }
}
